package com.bawei.detail.api

import com.bawei.network.HttpInterceptorType
import com.bawei.network.HttpManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 * Author: Jason Zhang
 * Date: 2024/3/9
 * Desc:
 */

@Module
@InstallIn(SingletonComponent::class)
object DetailApiModel {

    @Provides
    @Singleton
    fun getDetailService(): DetailServerApi{
        return HttpManager.createApiServer(DetailServerApi::class.java, HttpInterceptorType.INTERCEPTOR)
    }

}